package com.yuxi.al.fibonic;

/**
 * Created by yuxi on 17/2/5.
 */
public class Fibonic {
    public static void main(String[] args) {
        //斐波尼奇数列
        int result = fibnic(11);
        System.out.println(result);
    }

    private static int fibnic(int number) {
        if (number == 1 || number == 2) {
            return 1;
        }
        return fibnic(number - 1) + fibnic(number - 2);
    }
    public  void test() {
        System.out.println("我这个只是为了测试，我换了一个电脑而已");
    }
}
